package com.bw.zg2.view.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.alibaba.android.arouter.facade.annotation.Route
import com.bw.zg2.R

@Route(path = "/common/ErrorActivity")
class ErrorActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_error)

        sum(1, 2)
        str(name)
    }

    fun sum(a: Int, b: Int) {
        Log.d("dd", (a + b).toString())
    }

    var name = "name"
    var name2: String = "name"

    fun str(n: String) {
        name = "dfddd"
        Log.d("dd", name)
    }
}